package com.github.yoojia.mqtt;

/**
 * 消息处理器
 * @author Yoojia Chen (yoojiachen@gmail.com)
 * @since 1.0.0
 */
public interface MessageHandler {
    /**
     * 处理从服务端接收到的消息
     * @param socket MQTTSocket引用
     * @param receivedMessage 接收到的消息
     */
    void onMessage(MQTTSocket socket, Message receivedMessage);
}
